package com.example.demo.rabbitcfg;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Song Yinghui
 * @date 2019/12/6
 * @Version 1.0
 */
@Configuration
public class RabbitMQConfig {

    @Bean
    public Queue queue(){
        return new Queue("firstQueue1");
    }
}
